package com.zhou.demo04;

import com.zhou.demo02.UserService;
import com.zhou.demo02.UserServiceImpl;

public class Client {

    public static void main(String[] args) {
        UserServiceImpl userService = new UserServiceImpl();

        ProxyInvocationHandler handler = new ProxyInvocationHandler();

        handler.setTarget(userService);

        UserService proxy = (UserService) handler.getProxy();

        proxy.add();
    }

}
